package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easy.common.bean.ManagerBean;
import com.easy.common.bean.UserBean;

import java.util.List;

public interface IManagerService{
    ManagerBean getManagerById(Integer id);
    ManagerBean getManagerByNickName(String managernickname);
    int addManager(ManagerBean manager);
    int uploadManager(ManagerBean manager);
    int deleteManager(Integer id);
    int reverseStatus(Integer id);
    List<ManagerBean> getAll(ManagerBean manager);
    IPage<ManagerBean> getPage(ManagerBean manager, Page<ManagerBean> page);
    String adminLogin(String adminAccount, String password);
    ManagerBean getManagerByToken(String token);
}
